package com.usian.feign;

import com.usian.pojo.Account;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "account-service")
@RequestMapping("/account")
public interface AccountFeign {

    @PostMapping("/DeductionAmount")
    public String DeductionAmount(@RequestBody Account account);

    @GetMapping("/findByUserId/{userId}")
    public Account findByUserId(@PathVariable Integer userId);
}
